.upload-container {
  width: 100%;
  min-height: 200px;
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  background-color: #fafafa;
  cursor: pointer;
  transition: border-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.upload-container:hover {
  border-color: #1890ff;
}

.upload-button {
  text-align: center;
  color: #666;
}

.upload-button .anticon {
  font-size: 32px;
  color: #999;
}

.preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.preview-container::after {
  content: '点击更换';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.preview-container:hover::after {
  opacity: 1;
}

.preview-image,
.preview-video {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 4px;
}

.video-preview-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .upload-container {
    min-height: 150px;
  }

  .preview-image,
  .preview-video {
    max-height: 150px;
  }

  .upload-button .anticon {
    font-size: 24px;
  }
}

/* 上传按钮样式 */
.ant-upload.ant-upload-select-picture-card {
  width: 100% !important;
  height: 120px !important;
  background-color: #fafafa;
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ant-upload.ant-upload-select-picture-card:hover {
  border-color: #1890ff;
}

/* 文件名显示样式 */
.ant-upload-list-item-name {
  color: #666;
  font-size: 14px;
}

/* 视频播放控件样式 */
.preview-video::-webkit-media-controls {
  background-color: rgba(0, 0, 0, 0.5);
}

.preview-video::-webkit-media-controls-panel {
  display: flex !important;
  opacity: 1 !important;
} 